*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #08001b;
    min-height: 100vh;
}

.container{
    width: 1100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.container .card{
    position: relative;
    width: 300px;
    height: 400px;
    background-color: #0c002b;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    overflow: hidden;
}
.container .card::before{
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    bottom: 2px;
    width: 50%;
    background-color: rgba(255,255,255,0.1);
    pointer-events: none;
}
.container .card .content{
    padding: 30px;
    text-align: center;
}
.container .card .content h2{
    position: absolute;
    right: 30px;
    font-size: 4em;
    font-weight: 800;
    color:#1779ff;
    z-index: 1;
    opacity: 0.1;
    transition: 0.5s;
}
.container .card:hover .content h2{
    opacity: 1;
    transform: translateY(-70px);
}
.container .card .content h3{
   position: relative;
   font-size: 1.5em;
   color: #fff;
   z-index: 2;
   opacity: 0.5;
   letter-spacing: 1px;
   transition: 0.5s;
}
.container .card:hover .content h3,
.container .card:hover .content p{
    opacity: 1;
}
.container .card .content p{
    position: relative;
    font-size: 1em;
    color:#fff;
    z-index: 2;
    opacity: 0.5;
    font-weight: 300px;
    transition: 0.5s;
}
.container .card .content a{
    display: inline-block;
    margin-top: 15px;  
    padding: 8px 15px;
    background-color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
}
.container .card span{
    transition: 0.5s;
    opacity: 0;
}
.container .card:hover span{
    opacity: 1;
}
.container .card span:nth-child(1){
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 3px;
    background:linear-gradient(to right,transparent,#1779ff);
    animation: run1 2s linear infinite;
}
@keyframes run1{
    0%{
        transform: translateX(-100%);
    }
    100%{
        transform: translateX(100%);
    }
}
.container .card span:nth-child(2){
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background:linear-gradient(to bottom,transparent,#1779ff);
    animation: run2 2s linear infinite;
    animation-duration: 1s;
}
@keyframes run2{
    0%{
        transform: translateY(-100%);
    }
    100%{
        transform: translateY(100%);
    }
}
.container .card span:nth-child(3){
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 3px;
    background:linear-gradient(to left,transparent,#1779ff);
    animation: run3 2s linear infinite;
}
@keyframes run3{
    0%{
        transform: translateX(100%);
    }
    100%{
        transform: translateX(-100%);
    }
}
.container .card span:nth-child(4){
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background:linear-gradient(to top,transparent,#1779ff);
    animation: run4 2s linear infinite;
    animation-duration: 1s;
}
@keyframes run4{
    0%{
        transform: translateY(100%);
    }
    100%{
        transform: translateY(-100%);
    }
}